<!-- <script setup></script> -->

<!----<template>
  <div>
    <count-com></count-com>
    <count-com/>
  </div>
  <h1>You did it!</h1>
  <p>
    Visit <a href="https://vuejs.org/" target="_blank" rel="noopener">vuejs.org</a> to read the
    documentation
  </p>
</template>
<script>
</script>
<style scoped>
</style>-->


<!----<template>
  <div>
    <NumberCom/>
    <NumberCom/>
  </div>
</template>
<script>
import NumberCom from "./components/NumberCom.vue"
export default{
  components:{
    NumberCom
  }
};
</script>
<style scoped>
</style>-->


<!-- <template>
  <div>
    <HelloCom name="Jim"></HelloCom>
    <HelloCom name="Lily"></HelloCom>
    <HelloCom name="Bob"></HelloCom>
  </div>
</template>
<script>
        import HelloCom from './components/HelloCom.vue';
        export default{
          //注册组件
          components:{
            HelloCom,
          },
        };
</script>
<style scoped>
</style> -->


<!-- <template>
  <div>
    <Suspense>
      <template v-slot:default>
        <AsyncCom></AsyncCom>
      </template>
      <template v-slot:fallback>
        <h2>LOADING......</h2>
      </template>
    </Suspense>
  </div>
</template>
<script>
import{defineAsyncComponent} from'vue'
const AsyncCom=defineAsyncComponent(
  ()=>import("./components/HelloCom2.vue")
)
export default{
  components:{
    AsyncCom
  }
}
</script>
<style scoped>
</style> -->


<!-- <template>
  <div>
    <button @click="currentTab ='Tab1'">音乐</button>
    <button @click="currentTab ='Tab2'">视频</button>
    <button @click="currentTab ='Tab3'">新闻</button>
    <keep-alive>
     <component :is="currentTab"></component>
    </keep-alive>
  </div>
</template>
<script>
import Tab1 from"./components/TabCom1.vue";
import Tab2 from"./components/TabCom2.vue";
import Tab3 from"./components/TabCom3.vue";
export default{
  data(){
    return{
      currentTab: "Tab1",
    };
  },
  components:{
    Tab1,
    Tab2,
    Tab3,
  },
};
</script>
<style scoped>
</style> -->


<!-- <template>
  <div>
    <ChildCom msg="Hello,I am dad!"></ChildCom>
  </div>
</template>
<script>
import ChildCom from './components/ChildCom.vue';
export default{
  components:{
    ChildCom
  }
}
</script>
<style scoped>
</style> -->




<template>
  <div>
    <ChildCom1 :name="name" :age="age"></ChildCom1>
  </div>
</template>
<script>
import ChildCom1 from './components/ChildCom1.vue';
export default{
  data(){
    return{
      name:'Jim',
      age:[],
      gender:'',
      hobby:[]
    }
  },
  components:{
    ChildCom1
  }
};
</script>

<style scoped>
</style>